<?php

class option_m extends CI_Model {
	public function __construct() {
		parent::__construct();
		$this->load->database();
	}

	public function getItem($type)
	{
		 $sql = "SELECT * FROM `options` WHERE `type` = '$type'";
        $query = $this->db->query($sql);
        return $query->row();
	}

} 